package com.wanggan.rmi.util;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

/**
 * @author wanggan
 */
public class RegistryUtil {
    
    public static Registry getRegistry()  {
        try {
            return LocateRegistry.getRegistry("localhost",1099);
        } catch (RemoteException e) {
            e.printStackTrace();
        }
        return null;
    }
}
